<?php 
/*
* page-content-head
*/
?>

<?php get_header(); ?>
<!-- Content -->
<div id="content" class="wrap">
  <div class="main">
  <!-- crumbs -->
    <div class="wz bom"><?php if (function_exists('dimox_breadcrumbs')) dimox_breadcrumbs(); ?></div>
    <!-- finxed -->
	<div class="fixed string left bom">
	  <div class="sort_by">
		<h4 class="h4">排序</h4>
		<ul>
		  <li><a <?php if ( isset($_GET['order']) && ($_GET['order']=='rand') ) echo 'class="current"'; ?> href="<?php echo curPageURL() . '?' . http_build_query(array_merge($_GET, array('order' => 'rand'))); ?>">随机阅读</a>
          </li>
	      <li><a <?php if ( isset($_GET['order']) && ($_GET['order']=='commented') ) echo 'class="current"'; ?> href="<?php echo curPageURL() . '?' . http_build_query(array_merge($_GET, array('order' => 'commented'))); ?>">评论最多</a>
          </li>
		  <li><a <?php if ( isset($_GET['order']) && ($_GET['order']=='alpha') ) echo 'class="current"'; ?> href="<?php echo curPageURL() . '?' . http_build_query(array_merge($_GET, array('order' => 'alpha'))); ?>">标题排序</a>
          </li>
		</ul>
	  </div>
	  <h4 class="h4">浏览<?php
			// If this is a category archive
			if (is_category()) {
				printf('分类</h4>
			<h5>'.single_cat_title('', false).'</h5>' );
				if (category_description()) echo '<p>'.category_description().'</p>';
			// If this is a tag archive
			} elseif (is_tag()) {
				printf('标签</h4>
			<h5>'.single_tag_title('', false).'</h5>' );
				if (tag_description()) echo '<p>'.tag_description().'</p>';
			// If this is a daily archive
			} elseif (is_day()) {
				printf('日期存档</h4>
			<h5>'.get_the_time('Y年n月j日').'</h5>' );
			// If this is a monthly archive
			} elseif (is_month()) {
				printf('月份存档</h4>
				<h5>'.get_the_time('Y年n月').'</h5>' );
			// If this is a yearly archive
			} elseif (is_year()) {
				printf('年份存档</h4>
				<h5>'.get_the_time('Y年').'</h5>' );
				// If this is an author archive
			} elseif (is_author()) {
					echo '作者存档';
			// If this is a paged archive
			} elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {
				echo '博客存档';
			}
			?>
	</div>
    <!-- Blog Post -->